Changed various things, parse connect and disconnect packets