Removed trailing whitespace.
Improved automatic indentation for comments, function calls, and "in".