Code coverage testing:

Add these flags to build in gcc:

-fprofile-arcs -ftest-coverage

lcov --capture --directory . --output-file coverage.info

genhtml coverage.info --output-directory coverageHTML

firefox coverageHTML/index.html
