update perl scripts for better support
organize code better; added example html to show how to integrate multiple charts in one page