- Added license
 - Code refactoring