Improve status detection
Add docs to gitignore (managed separately)
Fix some errors and further improve status detection.
Bump library version number