fixed some compile issues
added load code to constructor and changed curve type to be double