refactored to be testable
renamed script
fixed lint errors
first test
Merge branch 'testing' into thinning