There is a Unofficial Guide for NSMB2 Hacking. It has a lot of usefull informtion how most of the stuff works, and a deteiled tutorial, on how to unpack and repack the NSMB2 rom with your edits. Just use the forum search function and you will find it.