Fixes for section layout (moves not necessary for merely not-open lines), plus line heights (separation wasn't factored in); sections moved to own module, a few additional functions exposed to that end