fixing compile bugs in new documentation