Separated costs to its own class. Some small fixes.
Some small fixes.
Added tests for Costs and Area.