Added JavaDoc for public API