Added validation.
Added some examples