added some parameter validation
Merge branch 'master' of https://github.com/sitewards/modman-php