add git commit hook
use constants in tiedot engine creation
fix exiting on error
add new tests