Rgb App demo fixed, and code improved