Fixes

Replaced deprecated functions
Merge pull request #1 from ostumpfs/master

Fixed some errors