Added readme and closed handles in testAllAlgorithms function.