Hundreds of books have been written about St Andrews.
I would recommend one of those:
"Two Years in St Andrews: At Home of the 18th Hole" by George Peper (former editor in chief of Golf Magazine).
ISBN: 978-0-7432-6282-8