In his famouse quote "to be or not to be" what is Hamlet referring to?

Does Hamlet exhibit signs if mental instability in the story?

http://nfs.sparknotes.com/hamlet/

Read Hamlet here, and you'll find it in a modern-day English version you can understand better.

After you've read it, let us know what you think about these two questions.