Finalization of magnet module, version bump, and fix for issue #4.