main - added git functionality roughly