sample code added on main.html
comment added.
bug fixed for toggle loop.
main.html updated for showing welcome message.
highlight functionality added.
code error resolved for write and backspace.
toggle callback added.