Delete old code comments and unused mouse control function