Doctor scared of being buried alive had a window installed in his grave