Added pre commit hooks.
Pulled snapshot size setting apart.
Merge branch 'test' into dev