Made the monitor package checkstyle and findbugs compliant.