Initial commit. Added basics of the library, modified from work done with QMAST.