def mtx_smoothing(matrix, epsilon):
	""" Adding epsilon into all matrix entries."""
	total = 0
	for w in matrix.keys():
		for c in matrix[w].keys():
			matrix[w][c] += epsilon
			total += matrix[w][c]
	return matrix, total