1 ---------------------------------------------------------------------------------------------------
6 - improved handling of cliffs.
7 ---------------------------------------------------------------------------------------------------
12 - polished, gitified and published