updated syntax checker to allow comments