stock lib working +tests
Merge pull request #1 from peeratham/master

stock lib working +tests