Small whitespace cleanups.
Added a hook to cleanup whitespaces before saving.