Garretts patches to get the writer.close callback to fire
added .close methods to reader/writer doc. updated publish doc to be consistent with other method format
Merge branch 'bugs/writerclosecallback'