Fixed a few bugs. Found a big one. See Issues for details.