initial version
Merge pull request #17 from paczian/master

helper functions