Thank you for the reply Robin and Paul. Well restarting didn't help but apparently I removed
Port = new Serial(this, portName, 9600);
and only kept
port = new Serial(this, Serial.list()[0], 9600); "
Doing this helped me launch it nicely. Changing the port to myPort also helped "automagically".
Slowly getting a hang of this scripting. Thanks alot guys!