Adding apache license.
Removing unused code.
Merge pull request #84 from raghavgautam/master

Adding apache license and removed some unused code.