Understanding and improving deep learning models for vulnerability detection