removing in-progress v.2 lib for now
refactored code into library
script now uses refactored library
added MINLENGTH parameter to skip over short scaffolds