Reformatting and refactoring

Removed superfluous newlines
Fixed indention
Replaced double with single quotes
Clarified load chain test comment