Fixed and tested real-time update

Tested real-time updating on hardware. Everything works as expected.
Added a new clean script, and updated the cached account to use a class
specific one.