Added delete function.

Style changes.