text structured rearranged, typos corrected, commands added