Refactor NBE file parser, and fix segfaults
Update file format spec
Add single file archiver and new NBE format
Fix segfaults