Tighten up code

Add missing parameter comments in canvas module