Fixing documentation; changing addPatterns/getPatterns/removePatterns methods in MessageFactory.java