Started building contents.
Fixes bug of writing body line twice.
Seems to start writing contents correctly, lots of diagnostics.
Removed diagnostics.
Basic contents - lists sections of exercises.