Added creditLimit to mainservice, refactored remainingCredit variable