Added ability to add new devices

Not much use currently as you can't rename them!
Added the ability to rename devices