More javadoc comments and added indexfiles option