Restored makefile to Linux output
I removed elevations and used the label matrix instead
Added pre and post conditions to the documentation of a number of functions