some fixes

- fixed function getPortalIDs
- new function getNearPortals
- fixed bug in function getAllPortals