Add MIT license and explainatory comments about design