Cleaned up annotation generation script.