Bugs, formatting and examples.

Fixed a bug when not using data-ret attribute.
Prettified variable names and formatting.
Added an example.