adds warning styling and more comments