Added debug and print functions, and access to the MVector swap function.