fix searchPath() to find shortest path
update version to 0.3
fix the broken part