wip
wip
Integrated scale threshold into C++ code
added and fixed bugs in an external mask creator script
initial mask creator