Fixed #28, and fixed some exceptions in the VAB.

Also made sure settings get saved periodically in the VAB.