Fixed big bug.
Added simple example.