Added device and orientation information, fixes #9