Added some new error codes and csmake scripts