goal creation added to dataGenerator as well as some functions in server.js