Added some help function in fs module.
Fixed bugs.