NWC header and bugs
Merge pull request #80 from saulelis/bugfixes

NWC header and bugs