cleaned up the config pin a bit
compile fixing
split up header files a little