added pre-commit file
a few new tests for the print function