Added some documentation to config.h and fixed some compiler warnings.