added classes for productdefs and scriptdefs. more changes on the script format checks