added examples and added documentation to Device