writing to ipynb now works (loads properly in IPython notebook), including when source was an Rmd file. Need to look into detecting headers in Rmd reading code, which it doesn't do now