Fixed CalcCapacity.
Converted to console project.
Unknown.
Fixed bug.