Analog read/write + minor improvements.

Signed-off-by: Stanislav Demyanovich <stan@angrybubo.com>
Ranger.

Signed-off-by: Stanislav Demyanovich <stan@angrybubo.com>