Basic work on output format, and move i_opndir