add config file, tidy up printing
cleanup