added addentity packet, fleshed out a lot of the classes