refs #9 - Bug: it's port_of_discharge and not port_of_destination

+ Also cleaned up indentation and tabs in the code!
refs #9 Removed duplication of code