move cost computation for paths to the Path classes, rather than the optimization objective. use initial and terminal costs for paths. make stateCost() pure virtual
minor doc fix