Made formatting and other suggested changes to check api