Add Comments

Add comments and changed format of output.