Add lib folder
Add unit tests