conditionally add '/' to namespace; update documentation