Formatted and added more comments