fixes #20
move common routines to utils module
minor refactor
Merge pull request #21 from prjemian/development

Development