tidying code
updated examples
remove html version