Added IP validation.  Started sudo code for remaining tests.