Almost fixed terrain texture (true 1D now) and some refactoring/commenting