Added temporary debug stuff
Added line to disable debug build (commented out now)
Altered target detection API to a simplier version; to be upgraded later on
Typo
Cosmetics
Fixed incorrect outImage.m_format initialization when there is no out image