Added JavaDoc documentation