fixed a bug in error reporting and some small documentation updates

--HG--
branch : trunk
7 files changed