Restructured the interperatation of flags. Descovered that e value sorting is wrong. It assumes things like '1e-4' are strings instead of floats. This is not yet fixed (I am out of time right now). Added some error messages. It is now possible to output to stdout.