Implemented a surface handler for tk canvas and made a demo script. Also fixed some minor errors.