Update clt.cpp

Refined error checking for inputs.
Implemented separate functions for various input values.
-Alex Mun