Now sends and receives packets

Still a few bugs. I think its caused by javas signed integers/bytes