refactored and working lend function
Merge pull request #17 from kereru-2014/continuingReturnFunctionalityKJL

refactored and working lend function