Added validation and fixed readme.