Add the cat program and fix some bugs about file systems.