interval: cleanup code and documentation
delay: rename timeout and cleanup code and documentation