Several minor bug fixes, updated automated install scripts