Added initial tests and bare version of lib