Cleaned up the imports, formatted the content, and added comments.