Refactored config file reading into a sigle function which returns the fields from the lines. Also if there is no config file it returns an empty variable. This means the monitor will not run but won't error either.
Merge github.com:AvanceIT/monitor