More consistent formatting in src/chart.
Cleanup of compiler warnings with more strict warning options.
Some compiler warnings resolved.