fixed a problem with the arty types and added isDocument()