write.module function

Export an PTModule object as a ProTracker module file