add back ng
add mmap support
re-factor load/save
fixes typo
move data files to libdir