Reformatted source code to pass linting checks.

Added linting checks and adjusted source code to pass.