Code cleanup
Re-generated the Makefiles
Supporting git in the update script as well