Fixed bugs with defining custom ports and added some more documentation to the README