newModelFromExisting methods in STM models had bugs

Also removed redundant imports