Fix syntax errors and contradictory version info