move sketch related code to sketches module. delete some dead code