Added basic error returns and stubbed out rest of the api