added basic syntax checker