Simplify multiuser example app code and add explanatory comments