Fixed trigrid corridors issues.

Also got in progress 'fringe' code.