Refactor profile API
Merge pull request #154 from sharoonthomas/develop

Refactor profile API