add check for PHP version - fixes #29
simplify package.json
minor refactoring
0.4.0