Added workoutdata api and a few other minor fixes