Seamless Integration of Renewable Generation And Plug-In Electric Vehicles Into The Electrical Grid.