Rewrite parse_section to fix last test.

All tests now pass!
Remove old function implementations. Correct a comment.