Added Output Directory, Bug Fixes, and Improvements in Error Reporting