Made the monitor package checkstyle and findbugs compliant.
Merge pull request #1835 from pveentjer/checkstyles/monitor

Made the monitor package checkstyle and findbugs compliant.