tweaks and added config file