generalize script discretize
update discretize script as requested
Merge branch 'master' of github.com:npcardoso/SoftProdLines