Rename file extension when generating markup

also remove some debug output
Allow for other reader types
Added .gitignore
Add template reader