added parametertype property to each parameter type class for error checking and tweaked the shape parameter