Code Cleanup

Massive style changes to the project have made code more maintainable and standardized without sacrificing any functionality or performance. Please read individual commit messages for details.