Updating docs and cleaning out old code.