Fixed many bugs; still need to improve sparseae