Massive clean-up.

Lots of fixing of code including random spaces after command aliases and missing semi colons as well as making code better and adding a space after function in TCs 'n all. Whew, took me lots of time. Also, some recent TCs had shitty indentation...