1. Reformatted code
2. Recommented with code cleanup
3. Fixed all typos
4. Fixed all PhpStorm warnings
5. Fixed nearly all minor warnings by PhpStorm
 Generated documentation without phpdoc warnings.