added config file and updated accessApp to use require