Extracted constants. Added missing JavaDoc.