turned most instance methods of NC3File into functions