renamed datatype to data_type in API and docs