Added setDateFromInteger function, added comments