replaced usage of deprecated API with suggested substitutes
Merge pull request #20 from asflierl/master

attended to some deprecation warnings