improved problems reporting in apidoc command
fixed apidoc context for markdown rendering