More error types; improved error doc