Updated AI
Remaining changes to code. Web component not implemented.