Added docs to header files.
Updated config to also document implementation.