added example file for testing, fixed error in factory, renamed factory and added missing config file error