took out test code, fixed a variable updated docs