add vim modelines and fix whitespace