format position styles; add code comments