To use a portal, place it on a piece of ground in surveyor and connect track to it. then est it up by using the ? button in the objects tab in surveyor. When a train enters a portal, it disappears. You can tell the portal to return it after a certain length of time.