removed some stdout clutter, added strict non-negative flux requirement