add export to functions

adds "export" flag (set to "none" by default so as not to change existing functionality)

options:
* export no functions (current default)
* all functions with documentation that includes "return"  
* all functions exported in NAMESPACE