Bugfix in gen tool and other updates

- Fixed a bug where a non-string value would make the marked lib throw.
- Updated .gitignore to DO allow non-HTML files inside the `output` folder in the repo.
- Added MIT license file.