Added comments to chapter parsing
rewrote chapter parsing to use regexes