Final part of smdFile
All code for smdFile *should* be committed, test of load works
Changed smdDump to use smdFile, fixed a bug in the latter
I did a manual test with bgm0003, passed.