remove warnings. Turning off the deprecated functions warning is problematic, but I added a //TODO: comment on each instance.
Merge pull request #17 from ddb/master

Warning elimination