fixed with php-cs-fixer using all PSR levels
adding .gitignore
some source code formatting fixes to comply with PSR2 and PEAR, when possible