Text this: Grid Optimal Integration of Electric Vehicles: Examples with Matlab Implementation