Fixed type in readme file
Updated svg.js to a newer version
Fixed graph resize

Added a resize event and updated example code.