Fixed lots of minor little bugs.