update documentation and remove commented out code