Made device __str__ more useful and fixed a bug in console