Added debug message and documentation on methods

	modified:   src/MainWindow.cpp
	modified:   src/MainWindow.cpp
	modified:   src/MetadataWindow.cpp