formatted source code

ran AStyle with following options
--style=stroustrup --ascii -t -N -w -Y -k3 -W1 -y -n -r -Q *.h *.cpp