Added PHPUnit as a composer dev dependency
Fix for #39 and #38 and minor PHPDoc additions for better type hinting