refactor classes
added 4 points curve line
update save to file feature