Renamed exceptions and fixed formatting of exception messages.
Added 'ordered' argument.