Remove outdated comments, all edoc, plus a few minor tweaks