Fix globals char creation and some PSR fixes

I change lines from 966 for a correct translation of a global var type char to the C code. and I correct some documentation errors, extra lines and fis some PSR code styles