Fixes warnings. Manually formats source code.