Optimize/Cleanup

No idea what performance increase this will give, there will be one for creation though. There are also optimizations throughout that will give slight speed increases and protect against falsey compares.
http://stackoverflow.com/questions/2316677/can-git-automatically-switch-between-spaces-and-tabs