added documentation. it's not right yet though, just a template