change device interface
fix function comments