changes
updated main() interface
added new model construction procedure
m