Refactored Fs code and added vfs class