Added ifdef's to be able to compile also on systems without comedi.
Started reorganization of the files.