Removed logging & added documentation.