remove trailing spaces
whitespace and comment tuning
fix hadoop 2 listFiles tests to look for files