Portal generation

Still working on the portal generation algol