added device deletion and foreign device table tostring methods