Added validation function and documentation
Merge pull request #3 from jbickar/master

Add validation function to wamr