fixed refined model
fixed module
fixed model updating. need to add a routine to main to make it all work smoothly
generate final model
add non-trimmed stuff to model as well
better clustering I guess