Added datetimetodatenum

Script that converts Python datetime to MatLab datnum
Fixed syntactical errors
Fixed loopMax error

Fixed how loopMax was defined.
Debugged code

Currently about 40% debugged. Works for old daysimeters, minus filtering
with is currently not working properly.