Added License.
Updated functions and setup file