Fixed single-end-mode bug that was causing crash and (some) improvement of error messages.

Thanks to Will Rowe for reporting the single-end bug and Luis Pedro Coelho for suggestions for better error reporting.
Fixed single-end-mode bug that was causing crash and (some) improvement of error messages.

Thanks to Will Rowe for reporting the single-end bug and Luis Pedro Coelho for suggestions for better error reporting.