structured model class correct and added php doc.