Fixed bugs--now removes doctype, added new char replacement, fixed key error in redundant links.