Improved drawing
Use svg format
bug fixes
Refactor drawing and improve diff calculation.