Restructured and modified the code
Corrections
Create README.md
Merge pull request #3 from shivamvats/master

I forgot to send you a pr last night :P