Minor cleanup and documentation added.