added examples based on readme and testing of them
fixed code style
Merge pull request #80 from krisb/tests

minimal tests for acceptance