refactor: replace molecule and model with compound
fix updating cluster info when compounds have been removed