adds demo option
refactors to use violation count
fixes live update and adds file that calls and creates charts