Move files to lib directory
Update gitignore
Remove log file
Add tests