added more syntax checking, final changes.
help update