Improve some element names and fix typos.
Catch always a possible ArrayOutofBoundsException.
Fix some mistakes in the documentation.