Added license and doc.
Fixed workitem.fields printing.