some minor changes

put  the caption at the top and rrenamed some methods for clairty