Some cleanups, field output added. This is the first full feature version of langevin.c