Documentation fixes
Add inline attribute to trivial functions