Line Chart summary feature, bug fixes, functionalization

* Line chart for compiled weekly data
* code functionalization, refactoring
* minor bug fixes