updated deprecated code
Merge pull request #15 from aogilvie/update/remove-deprecated-code

updated deprecated code