remove view reference and fetch keys directly // general code cleanup
fix small typo // change description of doctype