remove unused imports
move value of scaling step to top of function
remove commented functions
clean up comments
definition of function for pruning overlapping coins