updated docs and removed commented out code