Magnetic potential terms added

Unsure if done correctly, dubious square root to check.