updated config
cleanup config
changed format slightly
finished off flattening index dictionary