Added more comments for api documentation