adding CSeries class

also made some cleanup