Added documentation on contributing, hopefully fixed buildscript and added a quick pre-commit hook