can be initialised with a parent dom
Added documentation