Updated parser

Read from the file instead of trying to readfile, so that unsaved
changes are also parsed.
Updated headline add_headline & insert_headline

Updates the headlines level to be 1 more than the parent.