Fixes

Small fixes not including elevation features.
what's MIN_INT? Do you mean INT_MIN?