Options for listing threads. Major refactor
logging to stdout