Fixed use of deprecated cc, ccs and ccui create functions.

Some files in the samples folder still used the deprecated create functions. There are some files in which create functions are defined. I have not touched upon these functions and function calls.

**I have not manually tested these changes** because as far I know, every cc, ccs and ccui create function calls the constructor with the same parameters.