-- Removed unnecessary logs
-- Fixed the position of the legends