added auth packet, refactoring
fixed writeString method on packet
added auth packet