Version 1.1

Numerous bug fixes and new features. See readme.