added ntriples writer
rename ntriples to io, make fixes according to peer reviews