nasty bug 'vertical edge' fixed. some debug messages added.
added debug messages
Merging merging