Revert demag.go

Updated wrong branch