Move documentation comments to header, since we have two implementations
Relocate dragons
Group similar functions in header, only document the group