CHANGED: Curve class uses now file like objects instead creating files