fixed #10. Added the legend module.
Also fixed some bug and adding async parsing data and events parsing.