JavaDoc and example code clean up