Clean up of swapfile and add comments.