Refactored to simply enable other modes of operation. Added MLE mode.
Beefed up evaluation.