Magneticfields

Update: I don't know why this wants to merge into master, I branched staging. Anyway, code is in there as PDE and java so you could just extract from my repo.
-----
Updated magnetic fields with better calculations, support for multiple poles and support for varying strength polarities. Also added new examples.