Improve Javadocs of IndexInput/IndexOutput. Remove useless casting when acquiring clones of IndexInput