Merge pull request #4 from wick-ed/master

updated gitignore
refactored exception handling on php process
refactored exception handling on php process
removed debugging stuff
corrected comments
Merge pull request #5 from zelgerj/master

refactored exception handling on php process
added support for the  global array