rebuilt ubdt demo, added comments