Fixed for loops and missing commas, corrected faulty KS syntax throughout README