Add DOM documentation, add a couple comments