updated docs, code cleanup