Artistic Style

Cleans up a lot of code with astyle. Also did some linux fixes.