Updated Monte Carlo with innovations from regular recognize
functionality.
Added some plotting code (incomplete) and fixed a problem with monte
carlo output