Make Validator abstract and add composer file

Closes #12 #10