moved device.js into a system folder and fixed documentation