Add README and .gitignore for github.
Add some small functional logic for things with current and previous state