fixed issue872

Fixed issue872 (http://openhatch.org/bugs/issue872) and added coverage.xml to gitignore