Simplify the install and uninstall commands and improve tests.
Merge pull request #45 from pre-commit/simplify_commands

Simplify the install and uninstall commands and improve tests.