adds link to documentation
fixes some bugs
updates tests