Fixes

Small fixes not including elevation features.
Integer space is not symmetric: -MIN_INT is not positive how would be expected.
Changing the logics fixes this.