Added comments, style fixes.