updated build order and clarified some comments