added utils class
greatly simplified code; improved logging
now using basic byte array manipulation instead of the byte buffer object
gief moar logging