Fixed the bug in saveMod, foregot to multiply pattern data * 4 bytes per note to get sample data offset.