Documentaiton and cleanup.