Cleanup.

Added license header and cleaned up some comments.