removing legacy test code and improving docs