variable name, handle JTS glitch, add newlines, use instanceof
add more linefeeds
do not attempt to open log unless property is set
appply workaround suggested by Martin Davis on JTS list, change var name