Fixed a bug in `timeDiff' that could result in the return of wrong time differences under certain cirumstances
`timeDiff' now checks conversion for errors
errorcode ERR_TIME_CONVERSION added
`timeDiff' now has return value `short int' instead of `int'
function `calcParticipationTime' added