Many bugfixes and more accurat evaluation of costs and profits.