fix \index entries
add bibliography and index rules