Slightly more memory efficient, fixed small leak, added a few large examples, added makefile