renamed curvetype to curve degree for better naming scheme and used appropriate values to represent them
some cosmetic changes.