Added a section for calculating the area of the selected surface.
Added debug flag to the build script.
Factored out the area calculation as a new function and removed gratuitous comments.