Fixed filename bug, added port option

Not a huge feature, but I figured I'd send a pull request anyway.