Should be working now MINUS some edge cases.
Merge pull request #3 from sagarsane/master

Please ACCEPT This Pull