Improved auto indenting

It's more suitable to check for certain characters than to indent always
in the middle of the line. Still, this is a very simple approximation to
auto indenting but it should do in this context.
Remove trailing white space on save
Updated version number