Store the latest revision to allow multiple saves

fixes #1