Small bugfix and add License (MIT)