@karlnapf ok sorry! let me check the discussion on UAIFile. But I saw some writer methods in CHMM class as well, and hence moved ahead with this design. 
I can create a separate class but that will have just these writer methods in it. Nothing else!