High Level Control Implementation for a Residential Smart Grid Power System