Fixed some basic warnings.
Uncrustified.
Updated to modern syntax.
Ugh tabs