Add getProperties for publisher
Reformat all code