add types for advanced demo controller.
Merge branch 'master' of https://github.com/doomdagger/s_framework