Added a LICENCE file
Updated gitignore file
Fixed usages and added tests