improved logging
simplified executable behavior
got it working as an executable
reordered operations