Added GitParameters object

Added GitParameters object and also fixed some bugs.