Added writefits subroutine and implemented it in the makemonowave code.