small code cleanup and comments in breakLinesIntoWords