Add parse funciton
Internal refactor to a format function
docs: update description