close Scanner resource leak
remove trailing whitespace
ignore .swp