Updating project for VS.
Adding some simple error handling and reporting.