Added comments to link test

Formatted codebase and added comments to link test