fix formatting chars as integers
cahr != unsigned char != signed char, and worked on tests a bit