update docs and eliminate old code