Renamed demo functions and added comments