Added inheritance of file types (see #5)