mulitline smokey run detail to nagios plugin 

* Added multiline output to nagios plugin output
* Refactored the script to make it more readable