refactored plotting modules and add profileutils.py