removed matplotlib completely
added back private functions accidentally deleted
fixed integer issue
update for deployment static