added variable viewing distance
added debug option window