commented up the code and changed all chars to uint8_t also added debug flags to the makefile