- add pre commit using GNU style - remove some minor issues regarding the use of global variables and such