Change debug behaviour and add Spark.publish() example
Update circuit file