The very basics for QState have been implemented.

Cleaned up the code in terms of over definitions.

Fixed the scope of some variables in Mps which may have stopped it
working. Although the code still compiles and runs with no trouble.

Still fairly sure that this code won't work on Sam's computer ><