Changed new file writing to automatically append .moml if it is not there.