Fixed new_norb.NORB to support pickling
bugfix for browse_norb when viewing small NORB
moved some inner functions of main() to module scope, for better testability