replaced deprecated functions with new ones
Merge pull request #22 from justus-saul-rocket/master

replaced deprecated functions with new ones