added 3 demo cases and multiple file support