Started adding lcov support
mostly works but with some errors