make sure port values are integers
force type values in options
Merge pull request #8 from mochi/issue7-integer-exception

make sure port values are integers