cleaning up a little. and attempting to add test coverage code to karma. that is not working so well