John McGlynn had previously been coach for 10 years at Hearts