added calorie counter function with API