Add some comments and a missing require line