cleanup converter code
do not generate links to non-existing pages (closes #13)