add charting, refactor to use io library
Merge pull request #1 from edrinkercope/master

Graphing and refactored io