Cleaned up ticket and removed unneeded methods

moved methods to endpoint.py