Integrated set goal api and added comments