Basic principles for data types, scope, function contracts and secure code writing in motif language.