Major updated version, with proper output routines and userdef output. Almost completed documentation.