Add some comments and improve the load vector calculation