moved custom validations to lib and some readme