Added AStyle and formatted all of the code using it.