finished 1st part - included two more functions for status and output, created perfdata as well