Switched gitfig runmode into functions, added version information and main usage help