After Freud wrote his first book , he got married to Martha Bernays .
After opening his own medical practice , specializing in neurology , Freud married Martha Bernays in 1886 .