Moved some methods from workspace/functions.py to peakProcessingClass.py