Fixed bugs and added example
Fixed bugs and added an example HTML page