refactor the interface
use color convert func defined in Diagrams.Attributes
import external modules
move sub routines into Internal.hs
remove redundant imports
remove redundant imports