Add README.
Implement contrast, refactor some functions.