minor: comments and doc strings and whitespace