Added comments, cleaned.