Add credit method.
Merge pull request #15 from rezzza/credit

Add credit method.