Fixed some styles and cleaned some code.