Cleaned up and added comments to contact list code.