Added JavaDocs and comments. -Ben