Iteration 3

portal parsing fixed to allow for unlimited number of portals