Update codewriter.cpp