Finished Mathematica wrapper, ready to test