added comments to data writer
added comments to data writing util package
added constants