Cleaned unused functions and fix #34 `get_nearest_water`.