Added all demo code from randdusing git hub page