Fixed segfaults and added necessary xkcd references to code