add ability to get errors and pass optional debug flag
Merge pull request #7 from turbosquid/add_errors_and_debug_flag

add ability to get errors and pass optional debug flag