Added support for loading canvas groups via script. Added more comments.