Added function descriptions.
Final clean up.