Minor bug fixes; version bump to 0.1.8