install: fixes reference errors and syntax errors; #59