clean up verbose output
add comments and remove trailing whitespace