Fix globals char creation and some PSR fixes
Merge pull request #219 from vguardiola/master

Fix globals char creation and some PSR fixes