slight cleanup of demo program to use parameters from loaded mat file