rewrite functions associated with color composite
update examples, fix typo
break out code in separate files. clean up GPU with destory function