cleaned master and worker shutdown
implemented basic Main for CLI usage without simulation

closes #7