deleted unnecessary code

deleted code
added threshold for coex matrix
test output to stderr