Input event now listened on canvas container
fix smoothing and some refactoring typos
add space example