Modified ledge behavior. Top ledges can allow people to walk on it.
Added some long-forgotten javadocs.