Fixed formatting in nc.cpp
Initial code for #25