Cleaned the phpdoc and fixed the catch block
Merge pull request #40 from stof/cleanup

Cleaned the phpdoc and fixed the catch block