rename fileutils -> atomic; add docstrings