Improve define syntax
Improve redraw behavior
Add travis.yml