  We present a detailed spectral study of the narrow-line Seyfert~1 galaxy,
Markarian~335, using eight epoch observations made between 2013 and 2020 with
the Nuclear Spectroscopic Telescope Array. The source was variable during this
period both in spectral flux and flow geometry. We estimated the height of the
Compton cloud from the model fitted parameters for the whole observation
period. This allowed us to investigate the underlying physical processes that
drive the variability in X-rays. Our model fitted mass varies in a narrow
range, between $(2.44\pm0.45-3.04\pm0.56)\times10^{7}M_\odot$, however, given
the large error bars, it is consistent with being constant and is in agreement
with that known from optical reverberation mapping observations. The disk mass
accretion rate reached a maximum of 10\% of the Eddington rate during June
2013. Our study sheds light on mass outflows from the system and also compares
different aspects of accretion with X-ray binaries.
