#21 added comments
 #21 renamed publishStyle to publishType