Fix whitespace juggling bug; pass module extraction test

Markdown output not quite right yet