Text this: Control Algorithm for Renewable Energy Standalone System with Power Quality and Demand Management