made changes to API
Merge pull request #44 from riachkyle/Nick

made changes to API