added HUDdemo.R for demos