Costs (without factors and any tuning) implemented. Bugfixing desperately needed.