Adding license to top of source.
Moving constructor into its own util module.