First completed version. Includes fully functioning MC matching.