Improvement to flute executable

Code simplification, argument checking, utf-8