removed logging and fixed main code in nc3header.py