beginning dev on createDocument