add @throws to phpdoc
Merge pull request #11 from jamm/patch-1

add @throws to phpdoc