docs and style changes in the loader