Added more options to demo settings.
Fixed many bugs.