Better thread crest detection. No longer shrtens thread by eps (to avoid z fight) if all one colour. Comment about left hand threads.
Added a mechanism for tests.py and views.py to have command line options.