#125 added main in CP Ctor and adjusted Code attribute