Move base field definition to FileEntity
Make sure that we do not set type to an empty value
Fix documentation