Merge pull request #4 from mhshams/master

Ported to maven + Guarded by Unit Tests + new IDEA project files
converted the samples to unit test form.