Fixed some small typos, and fixed some issues with reflection.