Cleanup of code (warnings, typos, spaces, newlines).