Truncate state file before writing #11
Bumped version number