Simplified main class, added output function to Util.

Signed-off-by: Titouan Rigoudy <titouan.rigoudy@gmail.com>