Remove all of the grammar flaws from the given sentence:
On the surface the devices ability to save life seems remarkable, but it has serious risks of being abused.
On the surface, the ability of the devices to save life seems remarkable, but it has serious risks of being abused.