Updated interface for float arrays. Callback now separate from app class in demo.py.