fixed some more bugs in the struct and added editing for mb files.