Various fixes to the canvasLab Libray