quota functions

Signed-off-by: Shaun <discospider@me.com>
added option to check for quota
Merge pull request #2 from sund/quota

Quota check ready