Recommended updates from Antony Dovgal

Changed the curveType variables to be longs.

Changed E_ERROR to E_WARNING