Add pre-run check for git installation
Resolve merge conflicts
Add shebang to make script executable and update readme accordingly
Add docstrings to all methods and some minor cleanup/refactoring