Updated Licensing Info & Minor Refactoring

- Added MIT license
- Minor refactoring