Misc small updates

Replace some numbers in code with macros
Suppress some warnings
Add some missing bits to example in documentation