Initial try
Added comments, and chenged formatting