Major bug fixes

Curves should now work and we won't have trouble in the very beginning
anymore!!!