Fix warnings.

Remove deprecated methods.
Merge pull request #3 from DrMarcII/master

Fix warnings.