added commons classes
added methods and example
Merge pull request #39 from dmedov/dev_commons

Dev commons