Version 0.0.2. Improved error handling; allow document updates