Add quota to core api
Code style
add documentation