Refactored Hanto AI, fixed audit violations