Text this: Control active power filter for improving power quality in the micro-grid