fix tables, mangled markdown, and move metadata, see #20