added a function to enroll clients in a bank; further fixes and improvements to other existing code