#1 add LICENSE, AUTHOR and .gitignore, refactoring.