refactors all files for syntax, primarily indentation, also adds a test for static pages controller