added curve file loading code to the curve object implementation
cleaned up some comments and added code to load curve file in the constructor of curve object with passed params