The specific requirements for standing piles can be found in the book Principles and Methods of Quietly Practicing Health, written by Lu, in which the posture of practicing Qigong is described in detail. You can find it on Baidu, and there is a PDF version on Douding's website. There is also the "horse stance just look" standing pile in Shaolin Neijin Yizhichan, and it also tells how to stand the pile and how to follow it.
As for the bad stomach, it is suggested that the immortal rub his abdomen and rub his abdomen.