Add S3 class for "QMEtest"

Created "QMEtest" object type and refactored major functions for greater ease of use, especially on the internal side.