fix two errors with unititialized variables (#7), thanks Michel Stempin; also fix one syntax error.