added a showConfig method in some classes for debugging purposes.