fix code style.
add exception report
update to v0.5.0