format entries updated
Merge pull request #5 from Harkirat94/api_redesign2

Updated format_entries() function