Clean up deprecations

This should fix the last of the deprecations in this module.

Also here is the ability to set the port through a parameter.