Add MIT license to the code and get version from package.json instead of hard coding.

what i have got i have done it. Please just have a look