improvements; added insert script.