Removed white space at the end of lines.
Cleaned up code formatting.
Reformatted code to match the code style.