After investigating my own sleep patterns and from what I've learned taking, not taking, and then occasionally targetedly taking melatonin. I think the night waking/night creativity could be a late peak of melatonin above some threshold level which causes agitation, heightened feelings, etc. as described in the article.