Added MIT license to functions for open source release