Merge pull request #30 from dadgar/b-concurrent

Allow library to be used in parallel