inspect:mess - Optional format argument and report file option

Added optional format argument for Mess detector.
Added option for outputting report into file.
Solved PHPMD fatal error