more code

models, test codes, etc.