Before the introduction of a generic magnet class

A full hysteresis loop is implemented. Major things left to be
implemented are fancy sweep, the graph, and saving.

All libraries are for the most part live but untested, except for yoko.