Added validation code

Also reran sphinx for documentation