Removed examples index - new index created on website
Whitespace fixes
Marked test functions as being public
PSR-2 code style fixes (mainly elseif) by php-cs-fixer