fixed many bugs on the example scripts and web forms