added php syntax hightlighting to the php example in the readme.md
added Intellij config files to gitignore and added some comments
added phpdoc and fixed some minor issues
added phpdoc related files