sort of finished main reference doc