calculate drawing lines for text
cleanup documentation class