minor cleanup and reworks

Added prefix name in brackets in configure.ac, played with the
Makefile.am, put json stuff in brackets, and a bunch of minor tweaks.