fixed some error handling
updated reporting
updated version