generalize the code and add readme
change the default path
modification
Merge pull request #2 from prathameshsave007/master

Generalized Code