initial commit
Fixed publish bug where secret wasn't being set to 0 if it was nil