Move parsing to separate module
Add section head parsing and refactor