Refactored to make automatically generated endpoints easier
Updated README