Add documentation. Remove obsolete parameters, and normalize hex when populating index