cleanup code
replace while by for loop
review usage DunpString/DumpLiteral/DumpChar
use const for char pointer where it has sense
correct prototypes