Adds several new ambigs rules
Refactors generate_img.py to use hierarchical document folders
Fixes build script so it actually builds..