added write and publish scripts to the bin folder.