Docs pass 1b pushing compartmentalize idx_view code

easier to read