cleaned up PTVAPI code and started to write HighLevel API