add comments
fix text_of_raw

inner loop was called with i+1 instead of i+2