Putting in some documentation comments and cleaning up the contacts controller