What is the importance of reasonable doubt in the judicial system?

What is the importance of reasonable doubt in the judicial system? Also, what flaws in the U.S. justice system does the movie "Twelve Angry Men" expose?