Added config file logic and upstart script