formatting, added documentation