I was searching for quite a long time for a simple way of inserting short comments into latex equations. Recently I stumbled upon this solution by Steven B. Segletes that serves my needs. I have slightly modified the code to introduce arrows with both orientations and positioned above and under the equation.