added API layer to API controller #22
added comments into api #22