Added start of syntactic validation
Added validation for declarations