Added some functions to open and extract a file.
Added output path verification
Removed unuseful checks
Refactorized
Merge pull request #2 from CodingFree/master

Added some functions to open and extract a file.