Added action support and input checking
Renamed CPPArray
Fixing indentation