pathfind.js: algorithm finished, functionality improved --- tools.js: minor namechanges