added functionality of finding leaves by dates for an employee, minor
refactor and code cleaning