Added some JavaDoc.