use defines for delay functions
Improve code documentation (and README)