changed namespace to com.troop and added method for direct converting from a bytearray