Initial changes to support forestplanner

Modify the cost function to take parameters as they will be supplied in the forest planner tool.