added documentation and expanded on README