Move definition of N to derflow.hrl
Fix warning from dialyzer: only the last one is a real mistake.
Add timeout as a macro in derflow.hrl
Change names of isdet and waitneeded
Change if to case