Fixed typos and build errors; runs now.