cleaning up
added debugging option to Makefiles
avoid percent signs in input names (silent error when loading config)