Merge pull request #24 from aleitner/master

Update error handeling
Added check for core lib or throw exception

And minor formatting
Added PHP version requirement and formatting
Fixed typo
Added simple requirements checking
Cleaned up formatting
Removed double variable declarations, MyException changed to Exception, paired database bug fixed