reindentation and whitespace cleanup for xtm files