Add config file
Minor erros fixed, now running