Added drawGraph function
Solved problem with artefacts caused by firstPoint=true. Solved problem with NPE when closing app.
Activity restarts but without saving. Null pointer exception on closing app, Maybe should pause threads instead of terminating
HZ
Solved problems with threads terminating. Added some comments. Should make saving app state.