Added some comments and some indendations.