started on validation. Not complete yet.
updated docs for validation