Modified the tests slightly
Add doc for device
Added new demo and main lib doc