A Computational Study Of The Geometric And Electronic Properties Of Oxide Perovskites, And An Investigation Into The Role Of Vacancies For Surface Stability