Adding vfs component

Going to use a VFS stream to test the file commands, this will make it
quick and safer to test
Tidying code