Fixing second portal bug
Added profiling, basic performance tweaks
updated version number