ENH:change department to depart and fix some interface