Bestselling crime writer Val McDermid has returned to her childhood library in Kirkcaldy, saying she she would not be where she is today if it had not been on her doorstep.