added option of sorting by date of admission
changed code so R now accepts date columns in format Xdd.mm.yyyy. this is easier to set up on RExcel side (since it is default setting to add X in front of invalid variable names).
added help for sortData function.
added options for sorting. removed working directory setting (unneeded).