Moved packet listeners to PacketsManager Fixed a bug with FlagWatcher setting values it shouldn't Cleaned up api calls Cleaned up code Added commenting