Refactored code & added documentation

Added documentation to AMOUNT_OF_CLIENTS_ACCEPT_DEFAULT
Changed some code based on pull request comments