calcgrade bugfix and improvements

1) Fixes the first run bug
2) Efficient use of git clone and git pull ( runs at most once ).
3) If branch is not given, uses the default branch.