Updated gen.cpp and arc.cpp to new sense conventions.