more comments, and memleak hotfix. yikes.