typos, docs and unnecessary code