Add var_export for logging

closes #34