Docs and commented code cleanup