Love the add-on, but would love a bit more documentation on how to expose p

Love the add-on, but would love a bit more documentation on how to expose properties for the Java layer to set/get or how to handle events. thanks for the hard work!