Added JavaDocs and the beginings of tests