Added settings functionality and jpgraph library