Refactor and add documentation to example group