started formatting and commenting the code out