incorporated conditional report open into report functions (closes #47)