cleanup, add freelist to example