template for the api class done
little modifications in api