Nano is fine. Could be that you tried to add the text to the end of the file that opened for editing? Note that text should be added between
### Anything between here and the comment below will become the new contents of the file
and
### Lines below this comment will be discarded