Separate topo code

Make debug and verbose globals
Separate the debug macro header
Update src/Makefile.am to add the new topo file