Merge pull request #1 from vladikoff/lib-build

Adding lib build, sample tests