add a comment to Stream.foreach
add the unlink function + tests and special behavior for promises