Adding gitignore
Adding requirements
Using tests to check for correctness

- Handles multiple cases
- Much easier to maintain
Merge pull request #1 from shrayasr/master

Cleanup + using tests