Added cli.tools for command line arguments. Changed setting variables to
atoms to make them thread-global.