Added return_header and auto_invert flags to loadNcs