more syntax and other silly errors fixed