Rewritten output logging code
Finished implementing verbose mode