Initial testing and major bug fixes done. The code does what it should -
calculates visibility.