Fix for leaking variables.
Added script for coveralls coverage testing.