Clean-up of SuperMAG plug-in