fixed deprecation warnings
Merge pull request #17 from tanmaykm/tanmaykm

fixed deprecation warnings