add memory fs example
fix mkdir implementation in memfs
implement rmdir, other cleanup