added counting returned needle method in exchange model, added generating new codes method in client model
Merge pull request #2 from ybjoony/master

added a method to both exchange model & client model