changed commit hook handling
coding convention refactoring
bugfix and coding convention refactoring