Code formatting psr1/psr2. Comments have been added. Fixed register in the name of the class.
set charset
Merge pull request #7 from Gemorroj/master

code review (psr1/psr2, charset)