Fixed #6 by separating a bookmark hash/object from the createGroups method, which has itself been extracted from generate_bookmarks