Updated canvas clear, fixed typo, and renamed funct