cleaned up commented code, added dog validations