There are two bugs:
1. After the header, additional 2 bytes are written
into the edf data file. This is because the size of the
header is not set right.
2. writeedf can't deal with negative numbers. The
isadigit function (or what was the name ?) looks at the
- sign and decides that this isn't a valid number. But
EDF specifies signed integers, not unsigned integers