Conform to checkstyle; see etc/checkstyle.xml
Merge pull request #1500 from jbertram/checkstyle

Conform to checkstyle; see etc/checkstyle.xml
small tweak - just making it prettier with an encapsulated method
new test on loop
just doc