add trap
add coredump example, and update README