Finished functions, just need to scan data , plot graphs, and conclude results