Second part of smdFile writing
Code behind smdTrack is written.