fixed typos
fixed type problem
automatic loading of models