changed to double for cost type
cost type is double
chaned cost type return to be double
fixed bug with not putting things on closed list, and fixed cost type issues