Added JavaDoc comments to almost all files.