Clean up unused variables and options in bins. Add support for arrayed options on command line. Moved a lot of the options to config.