added license info and deprecation warning.