Add UNK code to the state
Fix sampling and refactoring
Remove unused paramater vbs from the state
Save model only after KeyboardInterrupt