Add live demo feature. Fix a bug when generating Weka files.