Move valid versions to Version class (closes #1)