Added a debug parameter to test and display the classification on just one image.
Fixed a small mistake leading to an exception.
Added a flag for debug information for the gdb.