Automated Power Factor Correction and Energy Monitoring System