main script to make graphs