Add pause button functionality. Fix some state-to-same-state bugs. Remove ignored files.