Rename functions; add test and implementation for wach-files; stubs for tailing functions