unitTested refactoring
unit testing
adding functions to bezier + testing scars.js