Prototyping chart rendering without GUI
Refactored chart saving
repo fix